﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using MSBTC.Model;
using MSBTC.CrystalReport;

namespace MSBTC.ReportViewer
{
    public partial class MatrlRptForm : Form
    {
        

        public MatrlRptForm()
        {
            InitializeComponent();
        }

        private void MatrlRptForm_Load(object sender, EventArgs e)
        {

            this.crysMat.RefreshReport();
        }

        private void crysMat_Load(object sender, EventArgs e)
        {
            try
            {
                MatRpt rport = new MatRpt();

                crysMat.ReportSource = rport;
                crysMat.RefreshReport();
            }
            catch
            {
                MessageBox.Show("Nothing to Print", "Print", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
        }
    }
}
